package com.atguigu.exam;

import com.atguigu.exam.mapper.PaperMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @description:
 * @author admin
 * @date 2025/10/12 下午9:53
 * @version 1.0
 */
@SpringBootTest
public class SpringTest1 {
    @Autowired
    private RedisTemplate<String,Object> redisTemplate;
    @Autowired
    private PaperMapper paperMapper;
    @Test
    public void test222(){
        redisTemplate.opsForValue().set("name","张三");
        System.out.println(redisTemplate.opsForValue().get("name"));
    }
    @Test
    public void ttt(){
        List<Integer> paperQuestionIds = paperMapper.getPaperQuestionIds(9);
        System.out.println(paperQuestionIds);
    }
}
